<html>
<head>
	<script type="text/javascript">
		var aJaxURL	= "server-side/report/jobs_time.action.php";		//server side folder url
		var tName	= "report";												//table name

		$(document).ready(function () {

			GetDateTimes("search_start");
			GetDateTimes("search_end");

 			$("#search_start").val(GetDateTime(2) + " 00:00");
 			$("#search_end").val(GetDateTime(2) + " 23:59");

			var start	= $("#search_start").val();
			var end		= $("#search_end").val();
			LoadTable(start, end);
		});

		function LoadTable(start, end){
			GetDataTable3(tName, aJaxURL, "get_list", 10, "start=" + start + "&end=" + end, 0, "", 1, "desc");
		}

	    $(document).on("change", "#search_start", function () {
	    	var start	= $(this).val();
	    	var end		= $("#search_end").val();
	    	LoadTable(start, end);
	    });

	    $(document).on("change", "#search_end", function () {
	    	var start	= $("#search_start").val();
	    	var end		= $(this).val();
	    	LoadTable(start, end);
	    });
    </script>
</head>

<body>
    <div id="dt_example"  class="ex_highlight_row">
        <div id="container" style="width: 1300px;">
            <div id="dynamic" >
            	<h2 align="center">მუშაობის დრო</h2>
            	<div id="button_area" style="padding: 0px 0px 10px 10px;">
	            	<div class="left" style="width: 270px;">
	            		<label for="search_start" class="left" style="padding: 10px 0px 0px 30px;">დასაწყისი</label>
	            		<input type="text" name="search_start" id="search_start" class="inpt right"/>
	            	</div>
	            	<div class="right" style="width: 270px;">
	            		<label for="search_end" class="left" style="padding: 10px 0px 0px 20px;">დასასრული</label>
	            		<input type="text" name="search_end" id="search_end" class="inpt right" />
            		</div>
            	</div>
                <table class="display" style="width: 100%" id="report">
                    <thead>
                        <tr style="height: 50px" id="datatable_header">
                            <th style="display: none;">ID</th>
                            <th style="width: 60px;" >ბარათის ნომერი</th>
                            <th style="width: 190px">კლიენტი/ფილიალი</th>
                            <th style="width: 30px">კარტრიჯების რაოდენობა</th>
                            <th style="width: 90px;">დასრულების ფაქტიური დრო</th>
                            <th style="width: 90px;">დასრულების გეგმიური დრო</th>
                            <th style="width: 60px;">სხვაობა</th>
                            <th style="width: 90px;">მიტანის გეგმ. დრო</th>
                            <th style="width: 90px;">ზედნადების დასრულების თარიღი</th>
                           <th style="width: 60px;">სხვაობა</th>
                        </tr>
                    </thead>
                    <thead>
                        <tr class="search_header">
                            <th class="colum_hidden">
                            	<input type="text" name="search_id" value="ფილტრი" class="search_init" />
                            </th>
                            <th>
                            	<input type="text" name="search_number" value="ფილტრი" class="search_init" >
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init">
                            </th>
                            <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                                                        <th>
                            	<input type="text" name="search_method" value="ფილტრი" class="search_init" >
                            </th>
                        </tr>
                   </thead>
                   <tfoot>
                        <tr>
                        	<th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                            <th>&nbsp;</th>
                        </tr>
                    </tfoot>
                </table>
            </div>
            <div class="spacer">
            </div>
        </div>
    </div>
</body>
</html>